<template>
    <Tabs v-show="tabs" />
    <router-view></router-view>
</template>

<script setup lang='ts'>
import { ref, provide } from "vue";
import { storeToRefs } from "pinia";
import { useGlobalStore } from "@/stores/modules/global";
import Tabs from "@/layouts/components/Tabs/index.vue";
const globalStore = useGlobalStore();
const { tabs } = storeToRefs(globalStore);
// 注入刷新页面方法
const isRouterShow = ref(true);
const refreshCurrentPage = (val: boolean) => (isRouterShow.value = val);
provide("refresh", refreshCurrentPage);
</script>

<style lang='scss' scoped></style>